package com.base.data.service;

import java.util.Map;

import com.base.data.entity.Department;
import com.mysteel.page.Page;

public interface DepartmentService
{
	
	/**
	 * 添加
	 * @param d
	 */
	void saveDepartment(Department d);
	/**
	 *删除
	 */
	void deleteDepartment(long id);
	/**
	 * 更新
	 * @param d
	 */
	void updateDepartment(Department d);

	/**
	 * 单查询
	 * @param id
	 * @return
	 */
	Department getDepartment(long id);
	/**
	 * 多查询
	 * @param map
	 * @return
	 */
	Page<Department> queryDepartment(Map<String, Object> params, int currentPageNum, int maxPageRowCount);
	
}
